<%@ page language="java" import="java.util.*,com.hanma.bean.Newsname" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Insert title here</title>
</head>
<body>
<table  border="1" align="center" cellspacing="0" cellpadding="0" width="600">
    <tr align="center" height="50" width="600">
        <td colspan="4">新闻列表</td>
    </tr>
    <tr align="center" height="50">
        <td>新闻标题</td>
        <td>一级名称</td>
        <td>二级名称</td>
        <td>操作</td>
    </tr>
	<%
        List<Newsname> newsList = (List<Newsname>)request.getAttribute("newsList1");
    	if(newsList != null && newsList.size() > 0){
    		for(Newsname news : newsList){
    			
    %>
    <tr>
        <td><%= news.getTitle() %></td>
        <td><%= news.getCate_name() %></td>
        <td><%= news.getSe_cate_name() %></td>
        <td>
            <a  href="newsupdate.do?id=<%= news.getId()%>">修改</a>
            <a  href="newsdelete.do?id=<%= news.getId()%>">删除</a>
        </td>
    </tr>
    <%
    		}
    	}
     %>
</table>
</body>
</html>